import React from "react";
class Home extends React.Component {

  componentDidMount() {
    console.log(this.props, "订单的属性");
  
  }
  render() {
    return (
      <div>
        <h1>订单页！！！</h1>
        <h1>state取值---{this.props.location.state.id}</h1>
      </div>
    );
  }
}
export default Home;
